package com.ruoyi.goods.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 sys_goods
 *
 * @author ruoyi
 * @date 2024-05-31
 */
public class SysGoods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名字 */
    @Excel(name = "商品")
    private String name;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String describes;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 所属系列Id */
    @Excel(name = "所属系列")
    private Long herbId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNickname(String nickname)
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setDescribes(String describes)
    {
        this.describes = describes;
    }

    public String getDescribes()
    {
        return describes;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }
    public void setHerbId(Long herbId)
    {
        this.herbId = herbId;
    }

    public Long getHerbId()
    {
        return herbId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("nickname", getNickname())
            .append("describes", getDescribes())
            .append("price", getPrice())
            .append("unit", getUnit())
            .append("herbId", getHerbId())
            .toString();
    }
}
